package ThaumPerditio.common.block;

import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;

public class ItemBlockArcaneInfusedStone extends ItemBlock {


    public ItemBlockArcaneInfusedStone(Block block){
        super(block);
        this.setMaxDamage(0);
        this.setHasSubtypes(true);
    }

    @Override
    public String getUnlocalizedName(ItemStack itemstack){

        int i = itemstack.getItemDamage();
        if(i < 0 || i >= BlockArcaneInfusedStone.subBlock.length){
            i = 0;
        }
        return BlockArcaneInfusedStone.subBlock[i];
    }

    @Override
    public int getMetadata(int metadata ){
        return metadata;
    }
}
